package com.shensi.adminCollect.service.station.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shensi.adminCollect.domain.station.PointsMerchandiseWriteOffRecord;
import com.shensi.adminCollect.mapper.station.PointsMerchandiseWriteOffRecordMapper;
import com.shensi.adminCollect.service.station.PointsMerchandiseWriteOffRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;

/**
* @author PC
* @description 针对表【points_merchandise_write_off_record(积分商品核销记录表)】的数据库操作Service实现
* @createDate 2023-11-01 12:20:48
*/
@Service
public class PointsMerchandiseWriteOffRecordServiceImpl extends ServiceImpl<PointsMerchandiseWriteOffRecordMapper, PointsMerchandiseWriteOffRecord>
    implements PointsMerchandiseWriteOffRecordService{

    @Resource
    private PointsMerchandiseWriteOffRecordMapper writeOffRecordMapper;
    @Override
    public Integer addCancelGoods(PointsMerchandiseWriteOffRecord record) {

        return writeOffRecordMapper.insert(record);
    }

    @Override
    public Date getCancelGoods(String integralOrderNo) {
       return writeOffRecordMapper.selectByOrderNo(integralOrderNo);
    }
}




